#!/bin/bash
#
npm install
npm run build

TAG=$1
if [ "$TAG" = "" ]; then
    export TAG=1.0.17
fi

mode=ivcs-customer-h5
if [ ! -d release ];then
  mkdir release
fi
rm release/* -r #remove old release
package_name=zealcomm-$mode.$TAG.tar
release_name=client
mv dist $release_name
tar cvf $package_name $release_name
gzip $package_name
mv ${package_name}.gz release
